package org.jeecg.modules.manage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 账户提现（发放）
 * @Author: yfkj
 * @Date:   2023-02-22
 * @Version: V1.0
 */
@Data
@TableName("caishui_withdraw")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="caishui_withdraw对象", description="账户提现（发放）")
public class CaishuiWithdraw implements Serializable {
    private static final long serialVersionUID = 1L;


	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;

	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;

	/**创建日期*/
    @Excel(name = "发放时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;

	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;

	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;

	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;

    /**税源地ID*/
    @Excel(name = "服务公司", width = 25, dictTable = "caishui_service_company", dicText = "name", dicCode = "id")
    @Dict(dictTable = "caishui_service_company", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "税源地ID")
    private String companyId;

    /**商户ID*/
    @Excel(name = "签约商户", width = 25, dictTable = "caishui_business", dicText = "name", dicCode = "id")
    @Dict(dictTable = "caishui_business", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "商户ID")
    private String businessId;

    /**租户ID*/
    @ApiModelProperty(value = "租户ID")
    private Long tenantId;

    /**用户ID*/
    @ApiModelProperty(value = "用户ID")
    private String userId;

    /**渠道商户ID*/
    @ApiModelProperty(value = "渠道商户ID")
    private String channelBusinessId;

    /**任务结算ID*/
    @ApiModelProperty(value = "任务结算ID")
    private String mainId;

	/**订单编号*/
	@Excel(name = "订单编号", width = 15)
    @ApiModelProperty(value = "订单编号")
    private String orderNo;

    /**付方户名*/
    @ApiModelProperty(value = "付方户名")
    private String payName;

    /**付方账号*/
    @ApiModelProperty(value = "付方账号")
    private String payAccount;

    /**记账子单元*/
    @ApiModelProperty(value = "记账子单元")
    private String paySubUnit;

	/**提现类型：1-对私提现，2-对公提现*/
	@Excel(name = "提现类型", width = 15, dicCode = "caishui_withdraw_type")
	@Dict(dicCode = "caishui_withdraw_type")
    @ApiModelProperty(value = "提现类型")
    private Integer type;

	/**姓名*/
	@Excel(name = "姓名", width = 15)
    @ApiModelProperty(value = "姓名")
    private String name;

	/**证件类型(1:身份证2:港澳台通行证3：护照4：军官证)*/
	@Excel(name = "证件类型(1:身份证2:港澳台通行证3：护照4：军官证)", width = 15)
    @ApiModelProperty(value = "证件类型(1:身份证2:港澳台通行证3：护照4：军官证)")
    private Integer idCardType;

	/**身份证号码*/
	@Excel(name = "身份证号码", width = 15)
    @ApiModelProperty(value = "身份证号码")
    private String idCard;

	/**手机号码*/
	@Excel(name = "手机号码", width = 15)
    @ApiModelProperty(value = "手机号码")
    private String phone;

	/**银行卡号*/
	@Excel(name = "银行卡号", width = 15)
    @ApiModelProperty(value = "银行卡号")
    private String bankCard;

	/**银行名称*/
	@Excel(name = "银行名称", width = 15)
    @ApiModelProperty(value = "银行名称")
    private String bankName;

	/**开户行*/
	@Excel(name = "开户行", width = 15)
    @ApiModelProperty(value = "开户行")
    private String accountName;

	/**银行渠道*/
	@Excel(name = "银行渠道", width = 15)
    @ApiModelProperty(value = "银行渠道")
    private String bankChannel;

	/**提现金额*/
	@Excel(name = "提现金额", width = 15)
    @ApiModelProperty(value = "提现金额")
    private Double money;

	/**服务费*/
    @Excel(name = "服务费", width = 15)
    @ApiModelProperty(value = "服务费")
    private Double serviceFee;

	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;

	/**发放状态：0-待下发，1-待回馈，2-已完成，3-下发失败*/
	@Excel(name = "发放状态", width = 15, dicCode = "caishui_task_settle_item_status")
	@Dict(dicCode = "caishui_task_settle_item_status")
    @ApiModelProperty(value = "发放状态")
    private Integer status;

	/**电子回单*/
    @ApiModelProperty(value = "电子回单")
    private String electronicReceipt;

	/**银行回馈时间*/
	@Excel(name = "推送时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "银行回馈时间")
    private Date bankFeedbackTime;

    /**银行失败原因*/
    @Excel(name = "银行失败原因", width = 15)
    @ApiModelProperty(value = "银行失败原因")
    private String bankFeedbackMessage;

}
